﻿#pragma once
#include <tuple>
#include <memory>
//#include "PtrDefine.h"
#include "byte_buffer.h"
#include "base_type.h"
//#include "xCmd.pb.h"

#pragma pack(1)
	/*struct MsgQueue
	{
		int connId_;
		ByteBufferPtr buf_;
	};

	struct PacketHead
	{
		uint8 head_flags_ = 0;
		uint16 body_len_ = 0;
	};

	struct Packet
	{
		PacketHead head_;
		uint8 *buf_ = nullptr;
	};

	class xCommand
	{
	public:
		uint8 cmd = 0;
		uint8 param = 0;

		xCommand(uint8 c = 0, uint8 p = 0) :cmd(c), param(p) {}
		bool isSame(uint8 c) { return cmd == c; }
		bool isUserCmd() { return cmd <= Cmd::MAX_USER_CMD; }

		bool operator==(const xCommand &item) const
		{
			return (cmd == item.cmd) && (param == item.param);
		}
		bool operator<(const xCommand &item) const
		{
			if (cmd == item.cmd) return param > item.param;
			return (cmd > item.cmd);
		}
	};*/

#pragma pack()

